import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import AddStu from '@/components/AddStu'
import AddTeacher from '@/components/AddTeacher'
import Index from '@/components/Index'
import Show from '@/components/Show'
Vue.use(Router)

export default new Router({
  'mode':'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/add_stu',
      name: 'AddStu',
      component: AddStu
    },
    {
      path: '/add_teacher',
      name: 'AddTeacher',
      component: AddTeacher
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/show',
      name: 'Show',
      component: Show
    },
    // {
    //   path: '/login',
    //   name: 'Login',
    //   component: Login
    // },
    // {
    //   path: '/user_center_info',
    //   name: 'User_center_info',
    //   component: User_center_info
    // },
    // {
    //   path: '/user_center_info',
    //   name: 'User_center_info',
    //   component: User_center_info
    // },
    // {
    //   path: '/cart',
    //   name: 'Cart',
    //   component: Cart
    // },
    
  ]
})
